package com.jzo2o.foundations.service;


import com.baomidou.mybatisplus.extension.service.IService;
import com.jzo2o.common.model.PageResult;
import com.jzo2o.foundations.enums.FoundationStatusEnum;
import com.jzo2o.foundations.model.domain.Serve;
import com.jzo2o.foundations.model.dto.request.ServePageQueryReqDTO;
import com.jzo2o.foundations.model.dto.request.ServeUpsertReqDTO;
import com.jzo2o.foundations.model.dto.response.ServeResDTO;

import java.math.BigDecimal;
import java.util.List;

import static com.jzo2o.foundations.enums.FoundationStatusEnum.ENABLE;

/**
 * 作用:
 *
 * @Author: simir
 * @Date: 2023/12/06/16:55
 * @Description:
 */
public interface IServeService extends IService<Serve> {

    /**区域服务分页查询
     * @param servePageQueryReqDTO
     * @return {@link PageResult}<{@link ServeResDTO}>
     */
    PageResult<ServeResDTO> page(ServePageQueryReqDTO servePageQueryReqDTO);

    /**
     * 添加区域服务
     * @param serveUpsertReqDTOList
     */
    void addRegionalService(List<ServeUpsertReqDTO> serveUpsertReqDTOList);

    /**
     * 更新价格
     * @param id
     * @param price
     */
    Serve updatePrice(Long id, BigDecimal price);

    /**
     * 上架
     * @param id
     */
    Serve onSale(Long id);



}
